package cn.elead.chaos.remote.web.system.controller;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.elead.chaos.remote.web.system.domain.vo.RouterVo;
import cn.elead.chaos.remote.web.system.service.IRemoteLoginService;

/**
 * 登录验证
 * 
 * @author luopeng
 */
@RestController
@RequestMapping("/remote")
public class RemoteLoginController {

    @Autowired
    private IRemoteLoginService loginService;	
	/**
	 * 获取用户信息
	 * 
	 * @return 用户信息
	 */
	@GetMapping("/getInfo")
	public Map<String,Object> getInfo() {
		return loginService.getInfo();
	}

	/**
	 * 获取路由信息
	 * 
	 * @return 路由信息
	 */
	@GetMapping("/getRouters")
	public List<RouterVo> getRouters() {
		return loginService.getRouters();
	}
}
